package com.leyou.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("auth-service")
public interface AuthClient {
    /**
     * 授权方法，认证并申请token
     * @param id
     * @param secret
     * @return
     */
    @GetMapping("authorization")
   String authorize(@RequestParam("id")Long id, @RequestParam("secret")String secret);
}
